import request from "@/router/axios";
import { baseUrl } from "@/config/env";

//查询设备
export const getConfigs = (data) =>
  request({
    url: baseUrl + "/api/board/configs",
    method: "get",
    params: data,
  });
// 机种序列
export const grtUsersall = (data) =>
  request({
    url: baseUrl + "/api/users/all",
    method: "get",
    params: data,
  });
// 新增工单在
export const addrepair = (list) =>
  request({
    url: baseUrl + "/api/repair",
    method: "post",
    data: list,
  });
// 修改用户
export const eidconfigs = (list) =>
  request({
    url: baseUrl + "/api/board/configs",
    method: "put",
    data: list,
  });
// 删除用户
export const dlerepair = (list) =>
  request({
    url: baseUrl + "/api/repair",
    method: "delete",
    data: list,
  });
// 查询角色
export const roleStation = () =>
  request({
    url: baseUrl + "/api/craft/station",
    method: "get",
  });
